package com.cg.service.impl;

import com.cg.dto.Dto;
import com.cg.dto.DtoUtil;
import com.cg.entity.DmItemType;
import com.cg.dao.DmItemTypeMapper;
import com.cg.service.DmItemTypeService;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;

/**
 * 节目类型表(DmItemType)表服务实现类
 *
 * @author makejava
 * @since 2023-11-08 13:05:04
 */
@Service("dmItemTypeService")
public class DmItemTypeServiceImpl implements DmItemTypeService {
    @Resource
    private DmItemTypeMapper dmItemTypeMapper;


    //获取首页横向导航数据
    @Override
    public Dto<List<DmItemType>> queryTransverse() {
        return DtoUtil.returnDataSuccess(dmItemTypeMapper.queryTransverse());
    }
}
